<!DOCTYPE html>
<html><head>
	    <meta charset="utf-8">
    <title>童老师ThinkPHP交流群：484519446</title>

    <meta name="description" content="Dashboard">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--Basic Styles-->
    <link href="__ADMIN__/style/bootstrap.css" rel="stylesheet">
    <link href="__ADMIN__/style/font-awesome.css" rel="stylesheet">
    <link href="__ADMIN__/style/weather-icons.css" rel="stylesheet">

    <!--Beyond styles-->
    <link id="beyond-link" href="__ADMIN__/style/beyond.css" rel="stylesheet" type="text/css">
    <link href="__ADMIN__/style/demo.css" rel="stylesheet">
    <link href="__ADMIN__/style/typicons.css" rel="stylesheet">
    <link href="__ADMIN__/style/animate.css" rel="stylesheet">
    
</head>
<body>
	<!-- 头部 -->
	{include file="public/header" /}
	<!-- /头部 -->
	
	<div class="main-container container-fluid">
		<div class="page-container">
            <!-- Page Sidebar -->
            {include file="public/left" /}
            <!-- /Page Sidebar -->
            <!-- Page Content -->
            <div class="page-content">
                <!-- Page Breadcrumb -->
                <div class="page-breadcrumbs">
                    <ul class="breadcrumb">
                                        <li>
                        <a href="#">系统</a>
                    </li>
                                        <li class="active">配置项管理</li>
                                        </ul>
                </div>
                <!-- /Page Breadcrumb -->

                <!-- Page Body -->
                <div class="page-body">
                    
<button type="button" tooltip="配置项管理" class="btn btn-sm btn-azure btn-addon" > 网站配置项
</button>
<div class="row">
    <div class="col-lg-12 col-sm-12 col-xs-12">
        <div class="widget">
            <div class="widget-body">
                <div class="flip-scroll">
                  <form action="" method="post">
                    <table class="table table-bordered table-hover">
                        <thead class="">
                            <tr>
                                <th class="text-center" width="10%">配置名称</th>
                                <th class="text-left">配置值</th>
                            </tr>
                        </thead>
                        <tbody>

                        <?php foreach($confres as $k=>$v): ?>
                          <tr>
                              <td align="right"><?php echo $v['cnname'] ;?></td>
                              <td align="left">
                              <?php if($v['type']==1): ?>
                                  <input type="text" name="<?php echo $v['enname'] ?>" class="form-control" style="width:220px;" value="<?php echo $v['value'] ;?>">
                              <?php elseif($v['type']==2 ): ?>
                                  <textarea  name="<?php echo $v['enname'] ?>" class="form-control"  style="width:620px;"><?php echo $v['value']; ?></textarea>
                              <?php elseif($v['type']==3):
                              if($v['values']){
                                    $arrradio=explode(',', $v['values']);
                                  }
                                  foreach($arrradio as $k1=>$v1):
                              ?>
                                <label style="margin-right:15px;">
                                  <input <?php if($v['value']==$v1){echo 'checked="checked" '; } ;?>  name="<?php echo $v['enname'] ?>" type="radio"
                                  value="<?php echo $v1; ?>">
                                  <span class="text"><?php echo $v1 ;?> </span>
                                </label>
                              <?php endforeach; ?>
                              <?php elseif($v['type']==4): ?>
                                <label>
                                  <input  <?php if($v['value']==$v['values']){ echo 'checked="checked" ';} ?>  name="<?php echo $v['enname'] ?>" type="checkbox"   value="<?php echo $v['values']; ?>">
                                  <span class="text"><?php echo $v['values']  ;?></span>
                                </label>
                              <?php elseif($v['type']==5) :
                              if($v['values']){
                                $arrselect = explode(',',$v['values']);
                              }
                            ?>
                                <select name="<?php echo $v['enname'] ?>" >
                                  <?php foreach($arrselect as $k2=>$v2): ?>
                                    <option  <?php if($v['value']==$v2){echo 'selected="selected"';} ?>  value="<?php echo $v2;?>"><?php echo $v2; ?></option>
                                  <?php endforeach; ?>
                                </select>
                              <?php endif;?>
                              </td>
                          </tr>
                        <?php endforeach; ?>

                        </tbody>
                    </table>
                    <div><input class="btn btn-primary btn-sm shiny" style="margin-left:224px;margin-top:10px;" type="submit" value="保存"></div>
                  </form>
                </div>
                <!--分页-->

                <div>
                	                </div>
            </div>
        </div>
    </div>
</div>

                </div>
                <!-- /Page Body -->
            </div>
            <!-- /Page Content -->
		</div>	
	</div>

	    <!--Basic Scripts-->
    <script src="__ADMIN__/style/jquery_002.js"></script>
    <script src="__ADMIN__/style/bootstrap.js"></script>
    <script src="__ADMIN__/style/jquery.js"></script>
    <!--Beyond Scripts-->
    <script src="__ADMIN__/style/beyond.js"></script>
    


</body></html>